package com.util;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonAppend;
import lombok.Data;
import org.springframework.stereotype.Component;

@Component
public class P_infor {
    private String pAccount;
    private String pName;
    private String email;
    private String phone;
    private String code;
    private String pId;
    private String title;
    private Boolean enable;

    public P_infor(){}
    public P_infor(String pAccount, String pName, String email, String phone, String code, String pId, String title, Boolean enable) {
        this.pAccount = pAccount;
        this.pName = pName;
        this.email = email;
        this.phone = phone;
        this.code = code;
        this.pId = pId;
        this.title = title;
        this.enable = enable;
    }

    @JsonProperty("pAccount")
    public String getpAccount() {
        return pAccount;
    }

    public void setpAccount(String pAccount) {
        this.pAccount = pAccount;
    }

    @JsonProperty("pName")
    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @JsonProperty("pId")
    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }
}
